<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

	<div id="sidebar">
		<ul>
			<li><h:form prependId="false"
				rendered="#{loginBean.cliente or loginBean.funcionario}">
				<h:outputText value="#{bundle['locanet.menuLateral.bemVindo']}" />, 
												<h:outputText value="#{loginBean.pessoaInSession.nome}" />
				<br />
				<h:commandButton styleClass="login-submit" value="Logout"
					action="#{loginBean.remove}" />
			</h:form> <h:form prependId="false"
				rendered="#{!loginBean.cliente and !loginBean.funcionario}">
				<h:inputText maxlength="20" value="#{loginBean.login}" />
				<h:inputSecret maxlength="20" value="#{loginBean.senha}" />
				<br />
				<h:commandButton styleClass="login-submit" type="submit" value="Login"
					action="#{loginBean.search}" />
				<br />
				<h:outputText value="#{bundle['locanet.menuLateral.naoCadastrado']}" />
				<h:commandLink immediate="true" action="#{clienteBean.openInsert}"
					value="#{bundle['locanet.menuLateral.aqui']}" />!
											</h:form></li>
			<li><h:form prependId="false">
				<h2><h:outputText value="#{bundle['locanet.filmes']}" /></h2>
				<ul>
					<li><h:commandLink action="#{filmeBean.search}"
						value="#{bundle['locanet.menuLateral.procurar']}" /></li>
					<li><h:commandLink rendered="#{loginBean.funcionario}"
						action="FILME_INSERT" immediate="true"
						value="#{bundle['locanet.butoes.cadastrar']}" /></li>
					<li><h:commandLink rendered="#{loginBean.funcionario}"
						action="#{copiaFilmeBean.search}"
						value="#{bundle['locanet.menu.copiaFilmes']}" /></li>
				</ul>
			</h:form></li>
			<li><h:form rendered="#{loginBean.cliente or loginBean.funcionario}" prependId="false">
				<h2><h:outputText
					value="#{bundle['locanet.menuLateral.locacoes']}" /></h2>
				<ul>
					<li><h:commandLink action="#{locacaoBean.show}"
						value="#{bundle['locanet.menu.carrinho']}" /></li>
					<li><h:commandLink
						action="#{locacaoBean.search}"
						value="#{bundle['locanet.menuLateral.listar']}" /></li>
					<li><h:commandLink rendered="#{loginBean.funcionario}"
						action="FILMELOCACAO_OPEN_TOP10"
						value="#{bundle['locanet.menuLateral.top10Copias']}" /></li>
				</ul>
			</h:form></li>
			<li><h:form
				rendered="#{loginBean.cliente or loginBean.funcionario}"
				prependId="false">
				<h2><h:outputText
					value="#{bundle['locanet.menuLateral.pessoal']}" /></h2>
				<ul>
					<li><h:commandLink action="LOGIN_UPDATE"
						value="#{bundle['locanet.menuLateral.alteraDados']}" /></li>
				</ul>
			</h:form></li>
			<li><h:form rendered="#{loginBean.funcionario}"
				prependId="false">
				<h2><h:outputText
					value="#{bundle['locanet.menuLateral.gerencia']}" /></h2>
				<ul>
					<li><h:commandLink action="#{clienteBean.search}"
						value="#{bundle['locanet.menuLateral.clientes']}" /></li>
					<li><h:commandLink action="#{funcionarioBean.search}"
						value="#{bundle['locanet.menuLateral.funcionarios']}" /></li>
					<li><h:commandLink action="#{estiloFilmeBean.search }"
						value="#{bundle['locanet.menuLateral.estiloFilmes']}" /></li>
				</ul>
			</h:form></li>
		</ul>
	</div>
	<!-- end #sidebar -->
</html>